package com.echo.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.echo.entity.pojo.User;
import com.echo.entity.vo.UserDetailedInfoVO;
import com.echo.entity.vo.UserMainPageVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface UserDAO extends BaseMapper<User> {

    @Select("select * from user where id=#{id}")
    public UserMainPageVO getUserMainPageInfo(@Param("id") int userId);

    @Select("select * from user where id=#{id}")
    public UserDetailedInfoVO getUserDetailedInfo(@Param("id") int userId);
}
